package de.chessgame.src;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;

public class ModelQueen extends ModelBase
{
  //fields
    ModelRenderer ShapeBottom01;
    ModelRenderer ShapeNeck;
    ModelRenderer ShapeMidSmall0;
    ModelRenderer ShapeRing2;
    ModelRenderer ShapeHead0;
    ModelRenderer ShapeHead2;
    ModelRenderer ShapeBottom1;
    ModelRenderer ShapeBottom00;
    ModelRenderer ShapeRing0;
    ModelRenderer ShapeRing1;
    ModelRenderer ShapeMidSmall1;
    ModelRenderer ShapeMid0;
    ModelRenderer ShapeHead3;
    ModelRenderer ShapeHead1;
  
  public ModelQueen()
  {
    textureWidth = 64;
    textureHeight = 32;
    
      ShapeBottom01 = new ModelRenderer(this, 44, 0);
      ShapeBottom01.addBox(0F, 0F, 0F, 6, 2, 4);
      ShapeBottom01.setRotationPoint(-3F, 22F, -2F);
      ShapeBottom01.setTextureSize(64, 32);
      ShapeBottom01.mirror = true;
      setRotation(ShapeBottom01, 0F, 0F, 0F);
      ShapeNeck = new ModelRenderer(this, 36, 0);
      ShapeNeck.addBox(0F, 0F, 0F, 2, 4, 2);
      ShapeNeck.setRotationPoint(-1F, 11F, -1F);
      ShapeNeck.setTextureSize(64, 32);
      ShapeNeck.mirror = true;
      setRotation(ShapeNeck, 0F, 0F, 0F);
      ShapeMidSmall0 = new ModelRenderer(this, 30, 0);
      ShapeMidSmall0.addBox(0F, 0F, 0F, 1, 6, 2);
      ShapeMidSmall0.setRotationPoint(1F, 15F, -1F);
      ShapeMidSmall0.setTextureSize(64, 32);
      ShapeMidSmall0.mirror = true;
      setRotation(ShapeMidSmall0, 0F, 0F, 0F);
      ShapeRing2 = new ModelRenderer(this, 48, 6);
      ShapeRing2.addBox(0F, 0F, 0F, 4, 1, 4);
      ShapeRing2.setRotationPoint(-2F, 12F, -2F);
      ShapeRing2.setTextureSize(64, 32);
      ShapeRing2.mirror = true;
      setRotation(ShapeRing2, 0F, 0F, 0F);
      ShapeHead0 = new ModelRenderer(this, 48, 11);
      ShapeHead0.addBox(0F, 0F, 0F, 4, 1, 4);
      ShapeHead0.setRotationPoint(-2F, 10F, -2F);
      ShapeHead0.setTextureSize(64, 32);
      ShapeHead0.mirror = true;
      setRotation(ShapeHead0, 0F, 0F, 0F);
      ShapeHead2 = new ModelRenderer(this, 44, 16);
      ShapeHead2.addBox(0F, 0F, 0F, 4, 2, 6);
      ShapeHead2.setRotationPoint(-2F, 8F, -3F);
      ShapeHead2.setTextureSize(64, 32);
      ShapeHead2.mirror = true;
      setRotation(ShapeHead2, 0F, 0F, 0F);
      ShapeBottom1 = new ModelRenderer(this, 36, 7);
      ShapeBottom1.addBox(0F, 0F, 0F, 4, 1, 4);
      ShapeBottom1.setRotationPoint(-2F, 21F, -2F);
      ShapeBottom1.setTextureSize(64, 32);
      ShapeBottom1.mirror = true;
      setRotation(ShapeBottom1, 0F, 0F, 0F);
      ShapeBottom00 = new ModelRenderer(this, 44, 24);
      ShapeBottom00.addBox(0F, 0F, 0F, 4, 2, 6);
      ShapeBottom00.setRotationPoint(-2F, 22F, -3F);
      ShapeBottom00.setTextureSize(64, 32);
      ShapeBottom00.mirror = true;
      setRotation(ShapeBottom00, 0F, 0F, 0F);
      ShapeRing0 = new ModelRenderer(this, 30, 12);
      ShapeRing0.addBox(0F, 0F, 0F, 4, 1, 6);
      ShapeRing0.setRotationPoint(-2F, 19F, -3F);
      ShapeRing0.setTextureSize(64, 32);
      ShapeRing0.mirror = true;
      setRotation(ShapeRing0, 0F, 0F, 0F);
      ShapeRing1 = new ModelRenderer(this, 16, 8);
      ShapeRing1.addBox(0F, 0F, 0F, 6, 1, 4);
      ShapeRing1.setRotationPoint(-3F, 19F, -2F);
      ShapeRing1.setTextureSize(64, 32);
      ShapeRing1.mirror = true;
      setRotation(ShapeRing1, 0F, 0F, 0F);
      ShapeMidSmall1 = new ModelRenderer(this, 24, 0);
      ShapeMidSmall1.addBox(0F, 0F, 0F, 1, 6, 2);
      ShapeMidSmall1.setRotationPoint(-2F, 15F, -1F);
      ShapeMidSmall1.setTextureSize(64, 32);
      ShapeMidSmall1.mirror = true;
      setRotation(ShapeMidSmall1, 0F, 0F, 0F);
      ShapeMid0 = new ModelRenderer(this, 32, 22);
      ShapeMid0.addBox(0F, 0F, 0F, 2, 6, 4);
      ShapeMid0.setRotationPoint(-1F, 15F, -2F);
      ShapeMid0.setTextureSize(64, 32);
      ShapeMid0.mirror = true;
      setRotation(ShapeMid0, 0F, 0F, 0F);
      ShapeHead3 = new ModelRenderer(this, 42, 19);
      ShapeHead3.addBox(0F, 0F, 0F, 2, 1, 2);
      ShapeHead3.setRotationPoint(-1F, 7F, -1F);
      ShapeHead3.setTextureSize(64, 32);
      ShapeHead3.mirror = true;
      setRotation(ShapeHead3, 0F, 0F, 0F);
      ShapeHead1 = new ModelRenderer(this, 12, 26);
      ShapeHead1.addBox(0F, 0F, 0F, 6, 2, 4);
      ShapeHead1.setRotationPoint(-3F, 8F, -2F);
      ShapeHead1.setTextureSize(64, 32);
      ShapeHead1.mirror = true;
      setRotation(ShapeHead1, 0F, 0F, 0F);
  }
  
  public void render(float f5)
  {
    ShapeBottom01.render(f5);
    ShapeNeck.render(f5);
    ShapeMidSmall0.render(f5);
    ShapeRing2.render(f5);
    ShapeHead0.render(f5);
    ShapeHead2.render(f5);
    ShapeBottom1.render(f5);
    ShapeBottom00.render(f5);
    ShapeRing0.render(f5);
    ShapeRing1.render(f5);
    ShapeMidSmall1.render(f5);
    ShapeMid0.render(f5);
    ShapeHead3.render(f5);
    ShapeHead1.render(f5);
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
}
